package com.atguigu.gmall.activity.service;

import com.atguigu.gmall.activity.model.SeckillGoods;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *  业务接口类
 * @author atguigu
 * @since 2023-05-14
 */
public interface SeckillGoodsService extends IService<SeckillGoods> {

    /**
     * 查询Redis中当日秒杀商品列表
     * @return
     */
    List<SeckillGoods> getSeckillGoodsList();

    /**
     * 查询指定秒杀商品信息
     * @param skuId
     * @return
     */
    SeckillGoods getSeckillGoods(Long skuId);
}
